<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8 echo CHARSET?>" />
<link rel="stylesheet" href="css/common.css" type="text/css" />

<title>劵打印</title>
</head>

<body>
<div id="man_zone">

  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr>
      <td><a href="?action=downxls&gid=<?php echo $gid?>" >[下载成Excel表格格式]</a>&nbsp;</td>
      <td width="62%" align="right"><form id="seach" name="seach" method="get" action="">
         &nbsp;团购ID：
            <input name="gid" type="text" id="gid" size="15" />
      &nbsp;会员ID：
      <input name="uid" type="text" id="uid" size="15" />
      &nbsp;序列号：
      <input name="sn" type="text" id="sn" size="15" />
      &nbsp;
      <input type="submit" name="Submit3" value="搜索" />
      </form>
      </td>
    </tr>
  </table>
<form method="post" action="?action=dels" name="grouplist" id="grouplist">
  <table width="99%" align="center"  border="0" cellpadding="3" cellspacing="1" class="table_style">
    <tr>
      <th><label></label>编号</th>
      <th width="7%">团购编号</th>
      <th width="17%">序列号</th>
      <th width="18%">密码</th>
      <th width="15%">过期时间</th>
      <th width="19%">使用时间</th>
      <th width="11%">订单号</th>
      <th width="7%">状态</th>
      </tr>
	<?php if(is_array($dataarray)){foreach($dataarray as $value){?>
    <tr class="odd_row">
      <td align="center"><?php echo $value['bid']?></td>
      <td><?php echo $value['gid']?>&nbsp;</td>
      <td><?php echo $value['sn']?></td>
      <td>&nbsp;&nbsp;<?php echo $value['password']?></td>
      <td><?php echo date("Y-m-d H:i",$value['endtime'])?></td>
      <td><?php if($value['usetime']!=0)echo date("Y-m-d H:i",$value['usetime'])?>&nbsp;</td>
      <td><?php echo $value['order_sn']?></td>
      <td>&nbsp;</td>
      </tr>
	<?php }}else{?>
	<tr><td colspan=8>暂无数据..............</td></tr>
	<?php };?>
  </table>
  

  <div style="width:99%;margin:0px auto;">

  
  </div>
  </form>
</div>
</body>
</html>
